<template>
  <el-card shadow="never">
    <template #header>
      <span>{{ title }}</span>
      <div class="optbtn"><slot name="optbtn"></slot></div>
    </template>
    <div class="text item">
      <slot></slot>
    </div>
  </el-card>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  props: {
    title: {
      type: String,
      required: true
    }
  },
  setup() {
    return {}
  }
})
</script>

<style scoped>
.optbtn {
  float: right;
}
</style>
